<{include file="public/header.html"}> 
		<div class="feedback setting-index">
			<header class="title title-border-sm bj-white">
                            <a href="javascript:;" class="icon-return iconfont title-left title-top col-red" onclick="javascript:history.go(-1);">&#xe604;</a>
				<h1 class="text-center name">意见反馈</h1>
			</header>
			<div class="feedback-text">
				<textarea id="feedbackContent" placeholder="你好，感谢你对弹溜溜的支持，我们期待您的宝贵意见"></textarea>
			</div>
                        <p class="mt20"><input type="submit" value="确认提交" id="sub-btn" class="btn btn-yes mt10"/></p>
			<p class="mt5">如有疑问，可直接拨打客服热线:<a class="col-">400-088-0809</a></p>
		</div>
                <script type='text/javascript'>
                    var flag = true;
                    $(function(){
                        $("#sub-btn").on("click",function(){
                            if(!_is_login()){return;}
                            var _self = $(this),_content = $("#feedbackContent");
                            if($.trim(_content.val()) == ""){
                                $.mvalidateTip("内容不能为空哦");return;
                            }
                            if(!flag){$.mvalidateTip("操作过于频繁");return;}
                            flag = false;_self.val("提交中...")
                            doRequest("/ajax/ajax_add_feedback",{content:_content.val()},true,function(data){
                                $.mvalidateTip("感谢您的意见反馈，我们会更加努力哦");
                                flag = true;_content.val("")
                                _self.val("确认提交");
                            },function(data){
                                $.mvalidateTip(data.errorMsg);
                                flag = true;
                                _self.text("重新提交");
                            });
                        });
                    });
                </script>
<{include file="public/footer.html"}> 